/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.improvement.mapper;

import com.koron.improvement.bean.Assessment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssessmentMapper {
    int deleteByPrimaryKey(String id);

    int insert(Assessment record);

    Assessment selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Assessment record);

    int updateByPrimaryKey(Assessment record);

    List<Assessment> queryList(@Param("assessmentGrade") Integer assessmentGrade,
                               @Param("deptName") String deptName,
                               @Param("assessmentYear") Integer assessmentYear,
                               @Param("corpName") String corpName,
                               @Param("assessmentType") Integer assessmentType,
                               @Param("corpCode") String corpCode,
                               @Param("assessmentTimeType") Integer assessmentTimeType,
                               @Param("assessmentTimeValue") Integer assessmentTimeValue,
                               @Param("start") Integer start,
                               @Param("pageSize") Integer pageSize);

    int queryTotal(@Param("assessmentGrade") Integer assessmentGrade,
                   @Param("deptName") String deptName,
                   @Param("assessmentYear") Integer assessmentYear,
                   @Param("corpName") String corpName,
                   @Param("assessmentType") Integer assessmentType,
                   @Param("corpCode") String corpCode,
                   @Param("assessmentTimeType") Integer assessmentTimeType,
                   @Param("assessmentTimeValue") Integer assessmentTimeValue);
}